$(function () {
    $("span.ljtip").ljDetail($("#zjbcht_detail_ljtip").val(), {
        position: 'top'
    });

    $("#zjbcht_tabs .previewImg").lightbox({
        fitToScreen: true,
        loopImages: true,
        imageClickClose: false,
        disableNavbarLinks: true
    });



    $("#zjbcht_xshtmx_table").datagrid({
        onLoadSuccess:function(){
            $(".datagrid-htable .datagrid-cell").css('text-align', 'center');
        }
    })



});

function viewZddhXsDetail(id) {
    $.window({
        title:'详细信息',
        iconCls:'icon-tip',
        url: $.webPath() + "/htgl/cghtgl/cghtgl_detail?cghtId=" + id,
        width: 1050,
        height: 500,
        modal: true,
        isMax: false
    })
}

function viewXshtXyDetail(xyId,xyType){
    if(xyType != null && xyType == "Cgxy"){
        var type = 1;
    }else if(xyType != null && xyType == "Xsxy"){
        type = 2;
    }else if(xyType != null && xyType == "Sfxy"){
        type = 3;
    }
    $.window({
        title:'详细信息',
        iconCls:'icon-tip',
        url:$.webPath() + "/jhgl/xygl/htwb_xsht_detail_id?type=" + type + "&xyId=" + xyId,
        width: 1050,
        height: 500,
        modal: true,
        isMax: false
    })
}
